<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <%= tag(:meta, :content => render_keywords, :name=>"keywords") %>
	<%= tag(:meta, :content => render_description, :name=>"description") %>
	<%= csrf_meta_tag %>
	<title><%= render_title %></title>
	<%= stylesheet_link_tag "application", "alert" %>
	<%= stylesheet_link_tag 'manage/panel.css', :media=> 'screen' if content_manager? %>
  <!--[if lte IE 7]><link href="/stylesheets/ie7.css" rel="stylesheet" type="text/css" /><![endif]-->  
  
  <%= javascript_include_tag "jquery-1.7.1.min", "jquery.radio", "preloader", "rails", "application" %>
  <script src="//connect.facebook.net/en_US/all.js"></script>
  
  <script type="text/javascript">
    window.fbAsyncInit = function() {
      FB.Canvas.setAutoGrow();
      sizeChangeCallback();
    }
    // Do things that will sometimes call sizeChangeCallback()
    function sizeChangeCallback() {
      var h = $('.wrapper').outerHeight() + 50;
      FB.Canvas.setSize({ width: 520, height: h });
    }
  </script>
  
  <%= yield(:head) %>
</head>
<body>
  <%= render :partial => "manage/shared/panel" if content_manager? %>
  <%= render :partial => 'shared/notice' if flash %>
  
  <div class="wrapper">
  	<div class="container">
      <%= yield %>            
    </div>
    <div class="clear"></div>
    <div class="footer"></div>
  </div>
  
  <%= yield(:footer) %>
  
	<div id="preloader" style="display:none;z-index:5000;" class="load-wait"><div><strong>Загрузка</strong></div></div>
</body>
</html>
